<?php include 'logincheck.php'?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="robots" content="noindex, nofollow">
<title>Post an article</title>
<?php
include 'head.php';
?>
</head>
<body>
<?php
include 'nav.php';
?>
<div id="wrapper">
	<div id="content">
		<div class="panel">You are now logged in | <a href="post">New</a> | <a href="edit">Edit</a> | <a href="alert">Alert</a> | <a href="logout">Logout</a></div>
		<h1>New Post</h1>
		<div id="details"></div>
		<form action="save.php" id="postForm">
			<table>
				<tr>
					<td><input type="textbox" id="article_title" name="article_title" onkeyup="preview(document.getElementById('ip_text').value)"></input><input type = "button" onclick="img()" value = "Insert Image"></input><input type = "button" onclick="window.open('imgup')" value = "Manage Images"></input></td></tr>
				<tr>
					<td><textarea id="ip_text" onkeyup="preview(this.value)"></textarea>
					<div id="htm"></div></td>
				</tr>
				<tr>
					<td>
						<select name="cat" id="cat">
							<option value="craft">Craft</option>
							<option value="ideas">Ideas</option>
							<option value="experience">Experience</option>
							<option value="other">Other</option>
						</select>
						<input type="submit" id="save" value="Save"></input>
						</td>
				</tr>
		</table>
		</form>
		<div id="result"></div>
	</div>
</div>
<?php
include 'footer.php';
?>
<script src="js/showdown.js" type="text/javascript"></script>
<script src="js/js.js"></script>
<script src="js/captions.js"></script>
</body>
</html>